package com.pxst.demo.controller;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/** 
* @author yangxy
* @version 创建时间：2023年7月31日 上午11:30:44 
*/
@Data
@AllArgsConstructor
public class ExcelModel {
	@ApiModelProperty(value = "用户名")
	@Excel(name = "用户名",orderNum = "0",groupName = "测试",needMerge = true)
	private String userName;
	
	@Excel(name = "超级管理员",replace = {"是_0","否_1"},groupName = "测试",needMerge = true,orderNum = "1")
	private Integer isAdmin;
	
	@TableField(exist = false)
	@ExcelCollection(name = "测试纵向合并",orderNum = "2")
	private List<ExcelModel1> list;
}
